﻿<%@ page language="C#" autoeventwireup="true" inherits="Admin_ToCartNo, App_Web_tocartno.aspx.fdf7a39c" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI" tagprefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>    <link href="../css/Admin_Css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" >
    
    function CheckAll(form)
{
       for (var i=0;i<form.elements.length;i++)
       {
              var e = form.elements[i];
              
             
if(e.checked)
{
 e.checked = false
}
else
{
                     e.checked = true
 
 }
       }
}
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <br />
    <div style="border-right: gainsboro 1px solid; border-top: gainsboro 1px solid; border-left: gainsboro 1px solid; border-bottom: gainsboro 1px solid;">
  
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;  font-size:12px;">
                        <tr>
                            <td style="background-image: url(../Images/btn_bg.gif); width: 100%; height: 24px; text-align: left;">
                                &nbsp; 审核发卡</td>
                        </tr>
        <tr><td style="height: 30px">
        <br />&nbsp;&nbsp;&nbsp;&nbsp;登录名：<asp:TextBox ID="loginnametxt" runat="server"></asp:TextBox>
            &nbsp; &nbsp; &nbsp;&nbsp;
        姓&nbsp;&nbsp;&nbsp;&nbsp;名：<asp:TextBox ID="realnametxt" runat="server"></asp:TextBox>
            &nbsp; &nbsp; &nbsp;
        地&nbsp;&nbsp;&nbsp;&nbsp;址：<asp:TextBox ID="addresstxt" runat="server"></asp:TextBox></td></tr>
        <tr><td style="height: 50px">&nbsp;&nbsp;&nbsp;&nbsp;电&nbsp;&nbsp;&nbsp;&nbsp;话：<asp:TextBox ID="teltxt" runat="server"></asp:TextBox>&nbsp;&nbsp;
            &nbsp; &nbsp;&nbsp;
        <asp:Button ID="searchbtn" runat="server" Text="搜索" OnClick="searchbtn_Click" /></td></tr>
        <tr><td style="background-image: url(../Images/btn_bg.gif); width: 100%; height: 24px; text-align: left; border-right: gainsboro 1px solid; border-top: gainsboro 1px solid; border-left: gainsboro 1px solid; border-bottom: gainsboro 1px solid;">
        &nbsp;
        </td></tr>
     <tr><td>
        <asp:GridView ID="UserListGv" runat="server" AutoGenerateColumns="False" Width="100%" BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" GridLines="None">
        <Columns>
                <asp:TemplateField HeaderText="选择">
              <ItemTemplate>
              <asp:CheckBox ID="mck" runat="server" Text='<%#Eval("Id")%>' />
         
              </ItemTemplate>
              <HeaderTemplate>
              
              全选<input id="qxck" onclick="CheckAll(this.form)"
            type="checkbox" />
              </HeaderTemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="登录名">
              <ItemTemplate>
              
          <a href='Admin_UserShow.aspx?id=<%#Eval("Id")%>'> <%#Eval("LoginName")%></a>  
              </ItemTemplate>
              </asp:TemplateField>
                <asp:BoundField HeaderText="姓名" DataField="TrueName" />
            <asp:TemplateField HeaderText="性别">
             
                <ItemTemplate>
                    <%#Convert.ToBoolean(Eval("Sex"))?"男":"女"  %>
                </ItemTemplate>
            </asp:TemplateField>
                <asp:BoundField HeaderText="市"  DataField="City" />
                <asp:BoundField HeaderText="地址"  DataField="Address" />
                <asp:BoundField HeaderText="邮箱" DataField="Email" />
                <asp:BoundField HeaderText="电话" DataField="Tel" />
           
                     <asp:TemplateField HeaderText="帐户">
            
            <ItemTemplate>
            <%# Convert.ToBoolean(Eval("AccountNo").ToString()=="") ? "<span style='color:red'>未审核发卡</span>" : Eval("AccountNo").ToString()%>
           
            </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="用户组">
            
            <ItemTemplate>
            <%# Convert.ToBoolean(Eval("UserType")) ? "<span style='color:red'>管理员</span>" : "<span style='color:#696969'>普通用户</span>"%>
           
            </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="状态">
            <ItemTemplate>
            <%#  Convert.ToBoolean(Eval("UserState"))?"正常":"<span style='color:red'>被锁定</span>" %>
            </ItemTemplate>
            </asp:TemplateField>
        </Columns>
            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
            <RowStyle ForeColor="Black" CssClass="showlist1" />
            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
            <HeaderStyle BackColor="Navy" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle CssClass="showlist2" />
 
        </asp:GridView></td></tr>
    
       <tr><td style="text-align: center">
           <asp:ScriptManager ID="ScriptManager2" runat="server">
           </asp:ScriptManager>
           <br /> 
            
           <webdiyer:AspNetPager ID="NewsPage" runat="server" AlwaysShow="True" NumericButtonCount="10" OnPageChanged="NewsPage_PageChanged" PageSize="20" CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" ShowCustomInfoSection="Left" CssClass="gd" CurrentPageButtonStyle="" Direction="LeftToRight" Height="35px" NextPageText="Next > " PageIndexBoxStyle="height: 30px;" PrevPageText="< Prev" SubmitButtonStyle="" SubmitButtonText="Go" Wrap="False"  >
    </webdiyer:AspNetPager></td></tr>
       
       <tr><td style="background-image: url(../Images/btn_bg.gif); width: 100%; height: 24px; text-align: left; border-right: gainsboro 1px solid; border-top: gainsboro 1px solid; border-left: gainsboro 1px solid; border-bottom: gainsboro 1px solid;">
        &nbsp;
        </td></tr>
        <tr><td style="text-align: left; height: 57px;">&nbsp;&nbsp; &nbsp;
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 320px;  font-size:12px;">
                        <tr>
                            <td><asp:Label ID="Label1" runat="server" Text="Label" Visible="False" Width="120px"></asp:Label></td>
                            <td><asp:Label ID="Label2" runat="server" Text="Label" Visible="False" Width="200px"></asp:Label></td>
                        </tr>
                        <tr>
                          <td>客户类型：</td>
                          <td style="width: 120px"><asp:DropDownList ID="DropDownList1" runat="server" Width="200px" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                                </asp:DropDownList>
                          </td>
                        </tr>
                        <tr>
                            <td>UPEX 分公司：</td>
                            <td style="width: 120px"><asp:DropDownList ID="paydl" runat="server" Width="200px" AutoPostBack="True" OnSelectedIndexChanged="paydl_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>账号前缀：</td>
                            <td style="width: 120px"><asp:TextBox ID="accqz" runat="server" Width="194px"></asp:TextBox></td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:UpdatePanel>
        <asp:Button ID="okntn" runat="server" OnClick="okntn_Click" Text="自动分配支付账号" /></td></tr>
        </table></div>
    </form>
</body>
</html>
